.class public Les/d50;
.super Ljava/lang/Object;
.source "FileSystemFactory.java"


# direct methods
.method public static a(Ljava/lang/String;Les/j60;Les/a50;)Les/c50;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/impl/usb/UsbFsException;
        }
    .end annotation

    const/16 p1, 0x200

    .line 1
    invoke-static {p1}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object p1

    const-wide/16 v0, 0x0

    .line 2
    invoke-interface {p2, v0, v1, p1}, Les/a50;->a(JLjava/nio/ByteBuffer;)V

    .line 3
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v0

    invoke-static {v0}, Les/i50;->a([B)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4
    new-instance v0, Les/i50;

    invoke-direct {v0, p0, p2, p1}, Les/i50;-><init>(Ljava/lang/String;Les/a50;Ljava/nio/ByteBuffer;)V

    return-object v0

    .line 5
    :cond_0
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/q;->a([B)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 6
    new-instance v0, Lcom/estrongs/fs/impl/usb/fs/ntfs/q;

    invoke-direct {v0, p0, p2, p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/q;-><init>(Ljava/lang/String;Les/a50;Ljava/nio/ByteBuffer;)V

    return-object v0

    .line 7
    :cond_1
    new-instance p0, Lcom/estrongs/fs/impl/usb/UsbFsException;

    sget-object p1, Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;->USB_ERROR_TYPE_NOT_SUPPORTED:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    const-string p2, "unsupported partition type"

    invoke-direct {p0, p2, p1}, Lcom/estrongs/fs/impl/usb/UsbFsException;-><init>(Ljava/lang/String;Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;)V

    throw p0
.end method
